<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>

<head>
<%@ include file="../commoms/link.txt"%>
<meta name="description" content="JobList">
<script src="assets/js/pagejs/EEIndex.js"></script>
<!--<script src="assets/js/pagejs/changepage.js"></script>  -->
</head>

<body>
	<%@ include file="../commoms/Header.txt"%>
	<div class="admin-content">
		<div class="am-container" style="margin-top: 40px;">
			<div class="am-panel am-panel-default">
				<div class="am-panel-bd" style="font-size: 12px; color: #999">
					<div class="am-g">
						<div class="am-u-sm-12" id="typeselect">
							职位： <a id="type0" onclick="changecontent(0)"
								class="am-badge am-badge-success am-radius">不限</a> <a id="type1"
								onclick="changecontent(1)" class="am-radius">传单派发</a> <a
								id="type2" onclick="changecontent(2)" class="am-radius">促销导购</a> <a
								id="type3" onclick="changecontent(3)" class="am-radius">
								话务客服</a> <a id="type4" onclick="changecontent(4)" class="am-radius">礼仪模特
							</a> <a id="type5" onclick="changecontent(5)" class="am-radius">老师家教</a>
							<a id="type6" onclick="changecontent(6)" class="am-radius">服务员</a>
							<a id="type7" onclick="changecontent(7)" class="am-radius">问卷调查</a>
							<a id="type8" onclick="changecontent(8)" class="am-radius">审核录入</a>
							<a id="type9" onclick="changecontent(9)" class="am-radius">地推
								拉访</a> <a id="type10" onclick="changecontent(10)" class="am-radius">其他</a>
						</div>
					</div>
					<div class="am-g">
						<div class="am-u-sm-12" id="placeselect">
							地区： <a class="am-badge am-badge-success am-radius" id="country0"
								onclick="changecontentcountry(0)">不限</a>

						</div>
					</div>
				</div>
			</div>

			<div id="pagecontainer"></div>


			<div id="pagecontent">
				<ul id="page" data-am-widget="pagination"
					class="am-pagination am-pagination-default">
				</ul>
			</div>

		</div>
	</div>

		<%@ include file="../commoms/alert.txt"%>
		<%@ include file="../commoms/comfirmModel.txt"%>
</body>


<script type="text/javascript">
	var ptid = 0;
	var currentpage = 1;
	var pages = 1;
	var $ul = $('#page');
	var $pagecontainer = $('#pagecontainer');
	var countries = null;
	var $placeselect = $('#placeselect');
	var selectcountry = curruntCity;
	var selecttype = '';
	var ldata = null;

	var localcitycode = getCookie('localcitycode');
	if (localcitycode==''||localcitycode=="undefined"||localcitycode==null) {
		localcitycode = '500100';		
	}
	getcount();
	getcountriesbycity(domain+'/getCountries.do', $placeselect, {
		"City" : localcitycode
	});
	$pagecontainer.on('click', '.ptinfo', function(event) {
		var pid = event.currentTarget.id;
		var index = pid.replace('ptinfo', "");
		if(event.target.nodeName!='BUTTON')
			{
		myPost(domain+'/showItemDetail.do', {
			'ptid' : ldata[index].id
		});
			}
	});
	$pagecontainer.on('click', '.jobsubmit', function(event) {
		further('jobsubmit', event.currentTarget.id)
	});
	$('#btnOK').click(function() {
		window.location.href = "Login.jsp";
	});
	

	var $confirm=myConfirm('我要报名','你，确定要投递吗？',function() {
		 
		myAjax(domain+'/commitJobRequest.do', {
			'ptjobid' : ptid
		}, function(data) {
			if(data.state=='success')
				myAlert('提示','报名成功!!!');
				else
					myAlert('提示', data.hint);
			
		})
	},function() {

	});
	$('#changecity').text(localCity);
</script>



</body>

</html>
